package com.czy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: chenzy
 * @Date: 2020/1/9 10:00
 */
@EnableScheduling
@SpringBootApplication
public class MQConsumerApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // TODO Auto-generated method stub
        return builder.sources(MQConsumerApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(MQConsumerApplication.class, args);
    }
}
